﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cosoware.Web.UI.WebControls
{
    /// <summary>
    /// 
    /// </summary>
    [ToolboxData("<{0}:FlatMenu runat=server></{0}:FlatMenu>")]
    public class FlatMenu : INamingContainer
    {
        /// <summary>
        /// Current site map provider.
        /// </summary>
        private SiteMapProvider _provider;

        /// <summary>
        /// Gets or sets the provider.
        /// </summary>
        /// <value>The provider.</value>
        public SiteMapProvider Provider
        {
            get
            {
                return _provider;
            }
            set
            {
                _provider = value;
            }
        }

        /// <summary>
        /// Renders the contents.
        /// </summary>
        /// <param name="output">The output.</param>
        protected override void RenderContents(HtmlTextWriter output)
        {
            output.Write("Test");
        }

        /// <summary>
        ///Process an event raised when a form is posted to the server.
        /// </summary>
        /// <param name="eventArgument">A <see cref="T:System.String"/> that represents an optional event argument to be passed to the event handler.</param>
        public void RaisePostBackEvent(string eventArgument)
        {
            // TODO: implement navigation
        }
    }
}
